package cn.tedu.baking.service;

import cn.tedu.baking.pojo.dto.ContentSaveDTO;
import cn.tedu.baking.pojo.vo.ContentDetailVO;
import cn.tedu.baking.pojo.vo.ContentIndexVO;
import cn.tedu.baking.pojo.vo.ContentVO;

import java.util.List;

/**
 * Author：毕龙
 * Date: 2024/8/15 17:05
 */
public interface IContentService {
    void saveOrUpdate(ContentSaveDTO contentDTO);


    List<ContentVO> getContentsByCreateBy(Integer createBy, Integer type);

    void deleteContentsById(Integer id);

    ContentVO getContentsById(Integer id);

    List<ContentIndexVO> getContentsByTypeAndCategoryId(Integer type, Integer categoryId);
    List<ContentIndexVO> getContentsByTypeAndCategoryId(Integer type);

    List<ContentIndexVO> getContentslikeTitle(String title);

    ContentDetailVO getContentsByContentId(Integer id);

    int updateViewCountById(Integer id);

    List<ContentIndexVO> getContentsByCreateByAndContentId(Integer createBy, Integer id);
}
